﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace Views
{
    /// <summary>
    /// SearchFriendPanel.xaml 的交互逻辑
    /// </summary>
    public partial class FriendRequestPanel : Border
    {
        public FriendRequestPanel()
        {
            InitializeComponent();
        }

        private void TextBox_IsMouseCapturedChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            TextBox textBox = (TextBox)sender;
            if (textBox.Text.Contains("请输入号码"))
            {
                textBox.Clear();
            }
            textBox.Foreground = new SolidColorBrush(Colors.Black);
        }
    }
}